<script>
function myAlert(text) {
    console.log(text);
}
</script>
<object width="800" height="600">
<param name="movie" value="MyFirst.swf">
<PARAM NAME="AllowScriptAccess" VALUE="always">
<embed src="MyFirst.swf" width="800" height="600" AllowScriptAccess="always">
</embed>
</object>
